var express = require('express');
var app = express();
var userRouter = express.Router();
var user = require('../controllers/user.js');
var app = require('../controllers/app.js');

userRouter.post('/user',user.signin);

userRouter.post('/signup',user.signup);

userRouter.get('/user/info',app.isLogin,user.getInfo);

userRouter.post('/user/info',app.isLogin,user.setInfo);


module.exports = userRouter;